package cn.tx.service.Impl;

import cn.tx.dao.GradeDao;
import cn.tx.dao.GradeStudentDao;
import cn.tx.model.Grade;
import cn.tx.model.GradeStudent;
import cn.tx.service.GradeService;
import cn.tx.service.GradeStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class GradeStudentServiceImpl implements GradeStudentService {

    @Autowired
    private GradeStudentDao gradeStudentDao;

    @Override
    public GradeStudent findByUserName(String username) {
        return gradeStudentDao.findByUserName(username);
    }

    @Override
    public int addGrade(GradeStudent grade) {
        return gradeStudentDao.addGrade(grade);
    }

    @Override
    public List<GradeStudent> findList(Map<String, Object> querymap) {
        return gradeStudentDao.findList(querymap);
    }
    @Override
    public List<GradeStudent> findByReportList(Map<String, Object> querymap) {
        return gradeStudentDao.findByReportList(querymap);
    }
    @Override
    public List<GradeStudent> findAll() {
        return gradeStudentDao.findAll();
    }

    @Override
    public int findTotal(Map<String, Object> querymap) {
        return gradeStudentDao.findTotal(querymap);
    }

    @Override
    public int UpdateGradeById(GradeStudent grade) {
        return gradeStudentDao.UpdateGradeById(grade);
    }

    @Override
    public int delete(String ids) {
        return gradeStudentDao.delete(ids);
    }

}
